{extend name='base'/}
{block name='content'}
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
	<li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
	<li><a href="#">类型管理</a></li>
	<li class="active">类型列表</li>
</ul>
<div class="col-sm-15">
	<section class="panel panel-default">
		<header class="panel-heading font-bold">类型列表</header>
		<div class="panel-body">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h3 class="panel-title"><a href="{:url('admin/type/addType')}" class="btn btn-success btn-xs">添加类型</a></h3>
				</div>

			</div>
			<table class="table table-hover">
				<thead>
				<tr>
					<th>类型id</th>
					<th>类型名称</th>
					<th>操作</th>
				</tr>
				</thead>
				{volist name="lists" id="data"}
				<tbody>
				<tr>
					<td>{$data['tid']}</td>
					<td>{$data['tname']}</td>
					<!--<td><a href="" class="btn btn-success btn-xs" >编辑</a></td>-->
					<td>
						<!-- Single button -->
						<div class="btn-group">
							<button type="button" class="btn btn-success btn-xs dropdown-toggle" data-toggle="dropdown">
								操作 <span class="caret"></span>
							</button>
							<ul class="dropdown-menu" role="menu">
								<li><a href="{:url('admin/typeattr/lists',['tid'=>$data['tid']])}">属性列表</a></li>
								<li><a href="{:url('admin/type/edit',['tid'=>$data['tid']])}">编辑</a></li>
								<li><a href="{:url('admin/type/del',['tid'=>$data['tid']])}">删除</a></li>
							</ul>
						</div>
					</td>
				</tr>
				</tbody>
				{/volist}
			</table>
			<ul class="pager">
				<li><a href="?page=1">&laquo;</a></li>
				<li class="disabled"><span>&raquo;</span></li>
			</ul>
		</div>
	</section>
</div>
{/block}
